package net.realsee.service.wcs.data;

import com.baomidou.mybatisplus.extension.service.IService;
import net.realsee.domain.wcs.data.WcsLiteralDict;
import net.realsee.domain.wcs.data.bo.WcsLiteralDictBo;
import net.realsee.domain.wcs.data.vo.WcsLiteralDictVo;
import net.realsee.framework.core.domain.PageQuery;
import net.realsee.framework.core.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 词典Service接口
 *
 * @author realsee
 * @date 2023-08-11
 */
public interface IWcsLiteralDictService extends IService<WcsLiteralDict> {

    /**
     * 查询词典
     */
    WcsLiteralDictVo selectVoById(Long id);

    /**
     * 查询词典列表
     */
    TableDataInfo<WcsLiteralDictVo> selectVoPage(WcsLiteralDictBo bo, PageQuery pageQuery);

    /**
     * 查询词典列表
     */
    List<WcsLiteralDictVo> selectVoList(WcsLiteralDictBo bo);

    /**
     * 新增词典
     */
    Boolean insertByBo(WcsLiteralDictBo bo);

    /**
     * 修改词典
     */
    Boolean updateByBo(WcsLiteralDictBo bo);

    /**
     * 校验并批量删除词典信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids);
}
